﻿using mscook.core.domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mscook.core.services
{
    public interface IMagazineService
    {
        Magazine Get(string id);
        IList<Magazine> SelectAll();
        void SaveOrUpdate(Magazine Magazine);
        bool Delete(string id);
        IList<Magazine> SelectPageList(int start, int limit, out long total);
        Magazine GetByYearMonth(string year, string month);
        IList<Magazine> GetRecent(int start, int limit);
        IList<Magazine> GetOrderByYearMonth(int start, int limit, out long total);
        IList<Magazine> SelectLimitbyIds(IList<string> resourceIds, int start, int limit, out long total);
        IList<Magazine> SelectPageList(int start, int limit, out long total, string title);
        IList<Magazine> SelectPageListByExpressions(int start, int limit, out long total, System.Linq.Expressions.Expression<Func<Magazine, bool>> expression);
    }
}
